'''teacher测试类'''
import unittest
import teacher


class TestTeacher(unittest.TestCase):
    def test_get_user_info(self):
        user_name = "Jack.Ma"
        t1 = teacher.Teacher()
        t1.set_attr(user_name=user_name)
        t1_user_name = t1.get_user_name()
        self.assertEqual(user_name, t1_user_name, msg="两个名字相等")


if __name__ == "__main__":
    unittest.main()
